package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitStudentRouter(Router *gin.RouterGroup)  {
	StudentRouter := Router.Group("student").Use(middleware.JWTAuth())
	{
		StudentRouter.GET("/getStudentList", v1.GetStudentList)
		StudentRouter.GET("/getOneStudentInfo", v1.GetOneStudentInfo)
		StudentRouter.GET("/getStuIDList", v1.GetStuIDList)
		StudentRouter.POST("/addStudent", v1.AddOneStudent)
		StudentRouter.PUT("/updateStudent", v1.UpdateStudent)
		StudentRouter.DELETE("/deleteStudent", v1.DeleteStudent)
	}
}


